package org.xinjiang.tarim.travel.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.xinjiang.tarim.travel.model.PoiMdd;
import org.xinjiang.tarim.travel.model.PoiMddWithBLOBs;
import org.xinjiang.tarim.travel.vo.Criteria;

import java.util.List;

@Mapper
@Component("PoiMddMapper")
public interface PoiMddMapper {

    /*
    条件查询
     */
    Long selectByConditionCount(Criteria criteria);
    List<PoiMddWithBLOBs> selectByCondition(Criteria criteria);

    /**
     * 查全部
     * @param criteria
     * @return
     */
    List<PoiMddWithBLOBs> selectAll(Criteria criteria);

    PoiMddWithBLOBs selectByMddId(String mddId);
}